home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / fromspacelove.swf / scripts / frame_1 / PlaceObject2_8_2 / CLIPACTIONRECORD onClipEvent(enterFrame).as
Encoding:
Text File  |  2006-06-13  |  461 b   |  20 lines

  1. onClipEvent(enterFrame){
  2.    time = new Date();
  3.    Hours = time.getHours();
  4.    Minutes = time.getMinutes();
  5.    Seconds = time.getSeconds();
  6.    if(Hours >= 11)
  7.    {
  8.       Hours -= 12;
  9.    }
  10.    MinSec = Minutes * 60 + Seconds;
  11.    Total = Hours * 3600 + MinSec;
  12.    HourHand._rotation = Total / 120;
  13.    MinHand._rotation = MinSec / 10;
  14.    SecHand._rotation = Seconds * 6;
  15.    if(_parent._framesLoaded >= 2)
  16.    {
  17.       _parent.gotoAndStop(2);
  18.    }
  19. }
  20.